@use './var.css';
@use './FormCreate/index.scss';
@use './theme.scss';
@use 'element-plus/theme-chalk/dark/css-vars.css';

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}
.el-calendar__title,
.el-tabs__item {
  font-size: 18px;
  color: #333;
}
.el-calendar__button-group {
  .el-button--primary {
    font-size: 14px;
  }
}

.app-content > .v-content-wrap {
  .el-form-item--default:not(.form-create .el-form-item--default) {
    --el-font-size-base: 16px;
    --el-form-label-font-size: 18px;
    .el-form-item__label {
      width: auto !important;
    }
    .el-date-editor .el-range-separator,
    .el-select__wrapper {
      font-size: 16px;
    }
  }
  .el-table__header {
    font-size: 18px;
    --el-table-header-text-color: #333;
  }
  .el-table {
    --el-table-text-color: #666;
    --el-font-size-base: 16px;
  }
  .el-table thead th {
    font-weight: normal;
  }
}
.el-menu--vertical {
  --el-menu-item-font-size: 16px;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
      0 0 10px var(--el-color-primary),
      0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}

/* 定义滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 定义滚动条轨道 内阴影+圆角 */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(170, 170, 170, 0.9);
  border-radius: 10px;
  background-color: #fff;
}

/* 定义滑块 内阴影+圆角 */
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 0 rgba(170, 170, 170, 0.9);
  background-color: rgba(170, 170, 170, 0.5);
}
@supports not (selector(::-webkit-scrollbar)) {
  *,
  :after,
  :before {
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 170, 170, 0.5) #fff;
  }
}
